package com.itchen.hospital.mapper;

import com.itchen.hospital.pojo.Params;
import com.itchen.hospital.pojo.Patient;
import com.itchen.hospital.pojo.PatientAttendance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PatientAttendanceMapper {

    /**
     * 条件查询用户
     * @param params
     * @return
     */
    List<PatientAttendance> findBySearch(@Param("params") Params params);

    /**
     * 修改用户
     * @param
     */
    void update(PatientAttendance patient);

    /**
     * 添加
     * @param
     */
    void insert(PatientAttendance patientAttendance);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    @Select("select * from patient_attendance where id = #{id}")
    PatientAttendance findById(Integer id);
}
